package com.advertise.strutsInterceptor;

import org.springframework.aop.ThrowsAdvice;

import com.opensymphony.xwork2.ActionInvocation;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;


public class ApplicationExceptionInterceptor extends AbstractInterceptor {


	public String intercept(ActionInvocation actionInvocation) throws Exception {
		try{
			
			System.out.println("Exception check");
			
			return actionInvocation.invoke();
		}
		catch (Exception e) {
			System.out.println("show error");
			throw new Exception();
		}
		
	}

}
